/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cube;

import javax.swing.JFileChooser;

/**
 * @author charmgil
 */

// shared lib
var finder;
public function getFileChooser( open: Boolean ): JFileChooser{
    if( finder == null ){
        finder = javax.swing.JFileChooser{};
    }
    var filter = if( open ) OpenFileFilter{} else SaveFileFilter{};
    finder.setFileFilter( filter );
    return finder;
}

//public class Utils {
//
//}
